﻿using DAL;
using Model;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public class OrdersTypeBLL
    {
        public DataTable Select(string TableName)
        {
            return new OrdersTypeDAL().Select(TableName);
        }
        public DataTable Lj(string Onename, string Twoname)
        {
            return new OrdersTypeDAL().LJ(Onename, Twoname);
        }
        public DataTable FY(string TableName, int YM)
        {
            return new OrdersTypeDAL().FY(TableName, YM);
        }
        public bool Add(OrdersTypeModel model)
        {
            return new OrdersTypeDAL().Add(model);
        }
        public DataTable DSelectID(string TableName, int ID)
        {
            return new OrdersTypeDAL().DSelectID(TableName, ID);
        }
        public bool Gai(OrdersTypeModel model, int id)
        {
            return new OrdersTypeDAL().Gai(model, id);
        }
        public OrdersTypeModel GetModelByID(string TableName, int id)
        {
            return new OrdersTypeDAL().GetModelByID(TableName, id);
        }
        public bool Del(string TableName, int id)
        {
            return new OrdersTypeDAL().Del(TableName, id);
        }

        public object SelectNo(string tableName, string mz)
        {
            return new OrdersTypeDAL().SelectNo(tableName, mz);
        }

        public object LJA(string v1, string v2, int pid)
        {
            return new OrdersTypeDAL().LJA(v1, v2,pid);
        }

        public DataTable S(string tableOne, string tableTow, int pageIndex)
        {
            return new OrdersTypeDAL().S(tableOne, tableTow, pageIndex);
        }
    }
}
